﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Volo.Abp.Domain.Entities;

namespace ERP.Team.ProductionSystem
{

    /// <summary>
    /// 生产废料单实体 (主键: int)
    /// </summary>
    public class ProductionWasteOrder : Entity<int>// 主键ID
    {
        /// <summary>
        /// 废料单编号
        /// </summary>
        [Required]
        [MaxLength(30)]
        public string WasteOrderCode { get; set; }

        /// <summary>
        /// 废料单名称
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string WasteOrderName { get; set; }

        /// <summary>
        /// 生产工单编码
        /// </summary>
        [Required]
        [MaxLength(30)]
        public string ProductionWorkOrder { get; set; }

        /// <summary>
        /// 废料日期
        /// </summary>
        [Required]
        [Column(TypeName = "date")]
        public DateTime WasteDate { get; set; }

        /// <summary>
        /// 单据状态（草稿、已完成等）
        /// </summary>
        [Required]
        [MaxLength(20)]
        public string OrderStatus { get; set; }

        /// <summary>
        /// 仓库名称
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string WarehouseName { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [Required]
        [MaxLength(30)]
        public string Creator { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Required]
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [Required]
        public DateTime UpdateTime { get; set; }
    }
}
